package com.traffic.fuwu.service.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.traffic.fuwu.dao.LastHeartMapper;
import com.traffic.fuwu.service.LastHeartService;
@Service
public class LastHeartServiceImpl implements LastHeartService{
	@Autowired
	private LastHeartMapper lastHeartMapper;

	@Override
	public List<Map> selectHeartFyz(String deviceId, String locate, String vehNo,String appKey, Date createTime, int startRow,
			int pageSize) {
		List<Map> sd = new ArrayList<>();
		try {
			sd = lastHeartMapper.selectHeartFyz(deviceId, locate, vehNo,appKey,createTime, startRow,
					pageSize);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return sd;
	}
	

	@Override
	public int countHeart(String deviceId, String locate, String vehNo,String appKey, Date createTime) {
		return lastHeartMapper.countHeart(deviceId, locate, vehNo,appKey,createTime);
	}

}
